package yxy.game.pm2.module.stairway;

import yxy.game.pm2.bean.module.rank.PlayerRankModule;
import yxy.game.pm2.bean.module.rank.RankModule;

// 天梯排名
public class RankStairway extends RankModule {
	private int areaGroupId; //战区id，按战区排名

	public int getAreaGroupId() {
		return areaGroupId;
	}

	public void setAreaGroupId(int areaGroupId) {
		this.areaGroupId = areaGroupId;
	}

	public RankStairway(int areaGroupId) {
		setAreaGroupId(areaGroupId);
		initInfo();
	}

	@Override
	protected boolean reconsitution() {
		return false;
	}

	@Override
	public String rankName() {
		return PlayerRankModule.getAllRankNames().get(10);
	}

	@Override
	protected long valuePlastic(long value) {
		return -value;
	}

	@Override
	protected long valueRestore(long score) {
		return -score;
	}

	@Override
	protected String rankKey() {
		return String.format("WORLD:%s:RANK:STAIRWAY", getAreaGroupId());
	}

}
